/*** 
 * @Author: Colin Dai
 * @Date: 2022-05-10 17:43:51
 * @LastEditors: Colin Dai
 * @LastEditTime: 2022-05-10 17:44:17
 * @FilePath: /jy-uos/src/softbus/communication/udp/include/nstackx_error.h
 * @Description: 
 * @dailianzheng@163.com
 * @Copyright (c) 2022 by Colin.Dai, All Rights Reserved. 
 */

#ifndef _NSTACKX_ERROR_H_
#define _NSTACKX_ERROR_H_

#ifdef __cplusplus
extern "C" {
#endif

#define NSTACKX_EOK 0 /* OK */
#define NSTACKX_EFAILED (-1) /* Operation failed */
#define NSTACKX_EINVAL (-2) /* Invalid argument */
#define NSTACKX_EINPROGRESS (-3) /* Operation now in progress */
#define NSTACKX_EBUSY (-4) /* Device or resource busy */
#define NSTACKX_ENOMEM (-5) /* Out of memory */
#define NSTACKX_EEXIST (-6) /* Resource already exist */
#define NSTACKX_EAGAIN (-7) /* Try again */
#define NSTACKX_ETIMEOUT (-8) /* Timeout */
#define NSTACKX_OVERFLOW (-9) /* Overflow */
#define NSTACKX_NOEXIST (-10) /* Not exist */
#define NSTACKX_TRUE 1
#define NSTACKX_FALSE 0

#ifdef __cplusplus
}
#endif

#endif // NSTACKX_ERROR_H
